package com.emep.changzhi.analyse.entity.aqi;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author yangj
 * @version V1.0
 * @Description: 优良天数，重污染天数，pm2.5已达数值
 * @date 2018/3/30  10:10
 */

@Data
@Table(name = "aqi_number_of_days")
@Entity
public class AqiNumberOfDays implements Serializable{

    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;
    @Column(name = "excellent_max",columnDefinition="varchar(100) COMMENT '优良天气'" )
    private String excellentMax;
    @Column(name = "pollution_max",columnDefinition="varchar(100) COMMENT '重污染'" )
    private String pollutionMax;
    @Column(name = "pm25_max",columnDefinition="varchar(100) COMMENT 'PM2.5均值'" )
    private String pm25Max;
    @Column(name = "byday",columnDefinition="varchar(100) COMMENT '截至时间'" )
    private String byday;
    @Column(name = "year",columnDefinition="varchar(100) COMMENT '年份'" )
    private String year;
    @Column(name = "area_code",columnDefinition="varchar(100) COMMENT '行政区划code'" )
    private String areaCode;
    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '录入时间'" )
    private String createDate = String.valueOf(System.currentTimeMillis());

}
